package com.gopay.bis.spdb.ebank.impl;

import com.gopay.bis.spdb.ebank.operation.SpdbB2bQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.spdb.ebank.SpdbMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

/**
 * @SpdbB2cBankServiceImpl.java
 * @author wanggang
 * @2013-12-5 下午2:10:48 www.gopay.com.cn Inc.All rights reserved.
 */
public class SpdbB2bBankServiceImpl implements BankService {

	private ICertHelper spdbB2bCertHelper;
	private SpdbB2bQuery spdbB2bQuery;

	@Override
	public Object sign(BaseMessage msg) throws GopayException {
		return spdbB2bCertHelper.sign(msg);
	}

	@Override
	public Object verify(BaseMessage msg) throws GopayException {
		return spdbB2bCertHelper.verify(msg);
	}

	@Override
	public Object query(Object obj) throws GopayException {
		SpdbMessage message = (SpdbMessage) obj;
		return spdbB2bQuery.query(message);
	}

	public void setSpdbB2bCertHelper(ICertHelper spdbB2bCertHelper) {
		this.spdbB2bCertHelper = spdbB2bCertHelper;
	}

	public void setSpdbB2bQuery(SpdbB2bQuery spdbB2bQuery) {
		this.spdbB2bQuery = spdbB2bQuery;
	}

	@Override
	public Object dayend(Object obj) throws GopayException {
		// TODO Auto-generated method stub
	    
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
